<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>FEUP-Defender: Referência à estrutura Sprite</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Gerado por Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Página&nbsp;principal</span></a></li>
      <li><a href="modules.html"><span>Módulos</span></a></li>
      <li class="current"><a href="annotated.html"><span>Estruturas&nbsp;de&nbsp;dados</span></a></li>
      <li><a href="files.html"><span>Ficheiros</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Estruturas&nbsp;de&nbsp;dados</span></a></li>
      <li><a href="classes.html"><span>Índice&nbsp;das&nbsp;estruturas&nbsp;de&nbsp;dados</span></a></li>
      <li><a href="functions.html"><span>Campos&nbsp;de&nbsp;dados</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Referência à estrutura Sprite<br/>
<small>
[<a class="el" href="group__sprite.html">Sprite</a>]</small>
</h1><!-- doxytag: class="Sprite" -->
<p><code>#include &lt;<a class="el" href="">SPRITE.H</a>&gt;</code></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Campos de Dados</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6150e0515f7202e2fb518f7206ed97dc"></a><!-- doxytag: member="Sprite::x" ref="a6150e0515f7202e2fb518f7206ed97dc" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>x</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a2f84ed7838f07779ae24c5a9086d33"></a><!-- doxytag: member="Sprite::y" ref="a0a2f84ed7838f07779ae24c5a9086d33" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_sprite.html#a0a2f84ed7838f07779ae24c5a9086d33">y</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">current sprite position <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2474a5474cbff19523a51eb1de01cda4"></a><!-- doxytag: member="Sprite::width" ref="a2474a5474cbff19523a51eb1de01cda4" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>width</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad12fc34ce789bce6c8a05d8a17138534"></a><!-- doxytag: member="Sprite::height" ref="ad12fc34ce789bce6c8a05d8a17138534" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_sprite.html#ad12fc34ce789bce6c8a05d8a17138534">height</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">sprite dimensions <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a90b9d56e145baae469f7b6bb757d9b27"></a><!-- doxytag: member="Sprite::xspeed" ref="a90b9d56e145baae469f7b6bb757d9b27" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>xspeed</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8e19090b4aa5dd9bb43efe8b74488f6d"></a><!-- doxytag: member="Sprite::yspeed" ref="a8e19090b4aa5dd9bb43efe8b74488f6d" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_sprite.html#a8e19090b4aa5dd9bb43efe8b74488f6d">yspeed</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">sprite current speed in the x and y direction <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b00b1bfd666e26484471bd17a74eaa9"></a><!-- doxytag: member="Sprite::map" ref="a7b00b1bfd666e26484471bd17a74eaa9" args="" -->
char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_sprite.html#a7b00b1bfd666e26484471bd17a74eaa9">map</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">the sprite pixmap (use <a class="el" href="group__sprite.html#ga87bd140b1b1b28386f37ebac5c9b9d2e">read_xpm()</a>) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4cc1a63c6b6bb7981f6b4a054e8fa098"></a><!-- doxytag: member="Sprite::bgmap" ref="a4cc1a63c6b6bb7981f6b4a054e8fa098" args="" -->
char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_sprite.html#a4cc1a63c6b6bb7981f6b4a054e8fa098">bgmap</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">the sprite background map <br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Descrição detalhada</h2>
<p>A <a class="el" href="struct_sprite.html">Sprite</a> is an "object" that contains all needed information to create, animate, and destroy a pixmap. The functions assume that the background is BLACK and they take into account collision with other graphical objects or the screen limits. </p>

<p>Definido na linha <a class="el" href="#L23">23</a> do ficheiro <a class="el" href="">SPRITE.H</a>.</p>
<hr/>A documentação para esta estrutura foi gerada a partir do seguinte ficheiro:<ul>
<li>video-graphics/<a class="el" href="">SPRITE.H</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Gerado em Tue Jun 1 22:04:50 2010 para FEUP-Defender por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
